split Ensure Visible and Scroll Position into two categories