width or height wise check is working