gallery.py: Pass page data through .index()