Different numbers of buttons in a repeater

I want to have a table with buttons in the last column. Each row would have a different number of buttons. Is it possible to do this and not have empty placeholder buttons?
Second part, would it be possible to have them without gaps so I guess they would push up when others appear?

Figured it out.

I set up all the buttons, set up columns with 1 or 0 and did an if data is 0 hide the button and pull widgets from the right.

The only issue I have left is that if the first button is missing, you still get the 20 px space before the second button whuch is now the first button.

Probably not an issue in this situation.