Cover the foam with any fabric. I did the same with a foam scrap to make a pillow.
When dolls are not asleep slide the mattress under the bed. I figured that the whole wooden trundle frame is not necessary. My daughter loves it and it is such an easy solution for multiple dolls.
Another trundle I made for the bunks. Super easy and super functional. Have fun!