I just drew a line on the particle board to match the length of the shelf and cut from there. Super easy. Then I drilled two holes at the bottom of the shelf and directly into the slat of particle board. You want to drill first. The shelf and the particle board will crack otherwise. Finally, I screwed them together.