TLDR: They either lie down in various positions you might expect (on their sides, or sort of like a cat or dog, or sometimes on their backs), or they stay standing, which they can do by locking their knees as @Tropical_Willie wrote. Snoozing while standing lets them run away if they need to, since standing up takes them a while.