remove certain transitions on resize