update gallery size