layout managers: properly take into account col/rowspan