Scroll down function working but the slide show is not