Where did soldiers sleep in the trenches?

They slept in the trenches as they had to keep their position to keep watch to see if anyone was coming. Sometimes they had to take it in turns to stay awake and keep guard.