do you mean leave a gap between each card?
to do that you need to divide the width of the card by the total width available, and resize the card to fit the space. Either you have to add in the space you want between the cards, or build the space into the card itself...
I added the space around the edge of the card to keep the calculation a little easier to follow...
then added buttons to build different configurations of cards... when you build the deck of cards, you have to make sure there are pairs of cards created, and randomly sort the deck.
https://www.rieperts.com/games/forum/mem4.c3p