fixed a bug with the slide show