Custom Stack-in-Card/Layout Card

Hello,

Is there a way to use layout card to adjust width of each card, and use custom stack-in-card so both cards look like one card?

Is there a way to combine the coding?

If so can someone please give a small example