Scroll down function working but the slide show is only semi working