fix to remove class each time page is resized