Add visibility handler to prevent slideshow when not carousel is not visible
Add conditional image preloading