refresh the scroll when screen size changed