Lay the one-inch plywood cut-to-fit sheet or slats inside the bed rails so that they span the entire width of the bed.
Ensure that the edges of the slats sit at least ¾ of an inch on either side to prevent them from slipping through.
Drill 1/8-inch diameter pilot holes that are either spaced every 12 inches apart for sheets of plywood or go through the center of each slat, at the location where the plywood rests on top of the bed rail. Pair each pilot hole with a second hole at the opposite bedrail ledge.
Slip the tapered ends of 1¾-inch wood screws into each tapered hole. Thread the screws into the holes using a screwdriver or a screw gun fitted with a phillips drive bit. Flush the screw heads with the top surface of the plywood to prevent them from snagging and damaging the mattress. Make each screw penetrate the one-inch plywood sheet or slats and into the bed rail ledge board to ensure a proper hold.