Many modern memory foam mattresses are built with cooling technologies to prevent heat retention and promote more comfortable sleep. You can also help yourself sleep cooler by buying breathable bedding, such as cotton or Tencel sheets, and pairing your mattress with a slatted foundation. Slatted foundations allow heat to escape out of the bottom of the mattress, further preventing night sweats.