VID-1976 scrolling to top of gallery after collapsing it