I put little stoppers on my rack to keep the snakes from pushing out.

You can find them at home depot in the hardware section I believe. They are used for holding in screens in windows and doors.