Style and pagination scripts for image gallery.