fix gallery and followscroll behaviour