Doctors recommend using a pillow between knees to the people suffering from hip pain, and doing so while sleeping on sides aligns the hips and spine perfectly.