The sliding lid rests on the lower rails and is kept in place by the upper rails. When using inner measurements, the height goes from bottom to lid, the lower rail is inside of the inner height. The width of the rail can be adjusted, wider rails are more stable but make the opening smaller. The horizontal margin makes the lid slightly narrower to prevent the lid from jamming. The vertical margin makes the gap between the rails larger to let the lid slide more easily.