OMG that was the worst part about pregnancy for me. My hips were killing me by the end! I didn't find a solution. Had to keep waking up and rolling over. I found the pillow between the legs helped a bit.