How to adjust column sizes in matrix