Mobile-friendly Photo Slider In Pure JavaScript &#8211; gallery.js