fixing animation resize quirk