on scroll, center the modal