test if old width is new height and old height is new width