Back and side sleeping can both help promote proper spinal alignment. In both cases, a supportive mattress is key. If you’re a side sleeper, putting a pillow between your knees may help your spine maintain alignment.