If the thing is oblong, the sides with the lesser dimension are sometimes called the ends.
We use the expression, "stand the boxes on end" to mean "the tall way," or, standing on a side with the smallest area.
"Close the ends first."
I think "lateral sides" is redundant.
If a box is square, we'd say it has four sides.
If it's rectangular, we'd say it