Added preloading of next slide.