how can I expand the cells in a matrix or table?