Measure the inside distance between the two bed rails. Each bed rail should have a smaller rail attached to the lower inside surface. The top of this smaller rail is the surface on which the ends of the slats will rest.
Measure the length of the slats. They should be 3/16- to 1/4-inch shorter than the distance between the inside faces of the bed rails. If they are too long, trim them to the correct length with a handsaw. If they are too short, you will have to get new slats.
Lay the first slat between the bed rails a few inches away from the headboard. Lay the second slat at the other end of the bed rails, the same distance from the foot board.
Distribute the rest of the slats along the bed rails, leaving an even distance between each slat. You should have enough slats so that there is no more than 16 inches between each slat.
Lay the box spring on top of the slats so that it is centered between the bed rails, the head board and the foot board.
Put the mattress on top of the box spring.