Added preload option and functionality before starting slideshow