To close off the shelving, we created sliding doors that will also serve as the headboard to the bed. The back to our door measures 30" x 24 3/4". You can use 1/2" plywood or mdf. We then arranged our scraps of lumber on top, cutting to size, as needed. Scraps were secured with wood glue and nails.