How to make the two matrix fields with same height and border?