update gallery