First of all, placing a memory foam mattress on top of a wooden surface not designed for a mattress may invalidate your warranty. That is partially because the surface could abrade the mattress and damage it. If you must use aboard, then it should have some holes bored in it to allow air movement. It’s best not to use boards, but properly designed foundations.