swap height and width dimensions