add init function for slideshow
fix gallery and boxes images loop