The mattress does not fold when you adjust the bed, you will need to order the headboard separate!