fixed bragallery onscroll behavior