adds infinite scroller for gallery pages