Write an article based on this summary:

Use a cervical contour pillow for good neck support. Pick a thick pillow if your mattress is firm. Go for a thin pillow if your mattress is soft. Avoid stacking pillows too high, as this can agitate your neck. Put a towel or a small pillow under your neck for extra cushioning. Slide a pillow under your knees if you sleep on your back. Place a pillow between your legs if you tend to sleep on your side.

Article:
These types of pillows have a depression in the center where you can rest your head and support your neck by elevating it slightly. These pillows are usually made of foam so they have enough support and padding. Look for natural latex pillows if you do not like how warm memory foam can get during the night. If you are allergic to latex, use a pillow made of memory foam instead. Avoid pillows stuffed with feathers or buckwheat, as they are often too soft to give your neck the support it needs while you sleep. Use a thicker pillow so the pillow can fill in the gap between your head and your mattress. Your pillow should allow your shoulders to sink into the bed so your neck and head are aligned and well supported. You can also try stacking pillows on top of each other so your neck feels comfortable and supported. You may adjust the pillows based on whether you sleep on your side or your back, as you may need more than one pillow to get comfortable. If you have a mattress that has a memory foam or pillow top, use a thinner pillow to fill in the smaller gap between your head and your mattress. You usually need 1-2 pillows maximum to support your neck and head properly. Avoid sleeping on too many pillows or pillows that are stacked very high, causing your head to dip into your chest or your neck to sit too far forward. Your neck should follow the natural curve of your spine when you lay down on your pillow, or pillows. Roll up the towel and slide it under your neck to support it better when you sleep. You can also use a small, roll-shaped pillow. If you are worried about the towel or pillow shifting in the night, slide it in your pillowcase so it stays in place. If you tend to sleep on your back, put a pillow or a bolster under your knees to make the position more comfortable. The pillow will help to keep your spine straight and your neck aligned while you sleep. Side sleepers often find it more comfortable to sleep with a regular pillow or a body pillow sandwiched between their legs. Hug the pillows to your chest and between your legs so you can keep your legs bent and your spine aligned.