Images and videos snap to center after scrolling