Interim solution to only display divs that are visible