Memory foam mattresses are ideal for slatted beds. However, it's a good idea to minimise the space between slats, use a box spring or fit a bunkie board, as memory foam can begin to mould around the slats over time.