Added preloading of next slide.
Merge branch 'master' into api-1.1