Changing width and height to columns and rows