Thread:Project:Support desk/Page through gallery/reply

I think you can use the javascript code that did this on Commons. See https://commons.wikimedia.org/wiki/Help:Gadget-GallerySlideshow