Improvements to gallery.