first pass through all the slides