Added Box and Grid modes for the gallery.