Placing a pillow between your knees when you sleep can help relieve back and hip pain when sleeping on the side. This position also assures your pelvis and spine are in the right alignment.