def METHOD_NAME(self, context, layout):
    layout .prop(self, 'dimensions', expand=True)
    col = layout.column(align=True)
    titles = ["Min", "Max", "Size"]
    prop = ['min_list', 'max_list', 'size_list']
    dims = int(self.dimensions[0])
    for i in range(3):
        row = col.row(align=True)
        row.label(text=titles[i])
        row2 = row.row(align=True)
        for j in range(dims):
            row2 .prop(self, prop[i], index=j, text='XYZ'[j], toggle=True)