Typically I will lay the lid upside down on the ground, and set the boxes that I pull off on that. That way they don’t get dirt or leaves all over them, and they are still safe and ok. If you set the boxes sideways on the lid, they also get some air circulation which is good.
I wouldn’t advise putting them on their sides, as that has the potential to crush comb or bees or even the queen if she is very unlucky!
And by “sideways” on the lid I mean rotated parallel to the ground. Not set on their side. I feel that I should make that clear.