update gallery_grid and gallery teaser add offset