Classes changes on window resize + bugFix