This topic is related to this one: Preview matrix rows 2..n don’t implement top/bottom borders, so however, you might provide a fixed value for the height (400px in your case) as a solution.
Similarly, you can provide a fixed value for the width.
Every time you increase or decrease the values, the studio will automatically display the changes to see if there is a space (horizontally and vertically) between each item.