If you have a foam mattress, your bed frame’s slats should be no more than 3 inches apart. If they are further apart, a 1-inch plywood board can reduce sagging. Place the board on top of the slats to create a flat, stable surface of your mattress. Bunkie boards can also protect your foam beds when using a slatted frame.