First, drop the music onto the audio track.
Then add slides. To match the beat, adjust the length of each image by dragging its handles...

To change the length of multiple images, first select (highlight) them, then right-click and Change Duration. Type the new duration into the box.
Left-click the video track or press <enter>.
The NCH PhotoStage program is designed for making slideshows. Check it out for free.