dynamic sections and number of rows per section