gallery resize scroll fix