switch rows/columns -> width/height