Checker for width and height change