Move js to theme and lazy load images in slideshow