update active Tgallery