Add gallery.jade functionality