Keeping a pillow between your legs can maintain hip alignment, which prevents spinal misalignment and lower back pain. If you sleep on your side without a pillow, your upper leg can shift the spine out of neutral alignment. A body pillow can be slipped between your legs, or you could try a knee pillow instead.