The Tibetans ascribe 3 energy channels than run through your body. Positive emotions are usually associated with a channel running up the left side of the male body, and the right side of a female body.
So, apparently sleeping on your right side closes off the right channel, allowing the channel on the left side to remain open, promoting positive dreams. Vice versa if you are female.