refactored home page slideshow