I think the OP is talking about horizontal depth not vertical. It is better to be deep in the sense that if the rack is 40x20, the 20 is the width and the 40 is the depth. The less exposure to light to more secure the snakes feel.
But if the OP means vertical depth, that really doesn't matter too much. The above is what is important.