Update data and gallery.