change ScrollToIt logic to work on small browser windows