get row heights and column widths