Dynamical Tabs name

Hello there, hope you’re doing well.

How can i have the data text dynamically changing based of the numbers of columns there is in the group?


i have this, but the problem is the number of tab change based of user input, so i need the tab to be like 1 2 3 4 5, and if user input removes 4 i would need 1 2 3 4 and not 1 2 3 5

image

this is my workflow to show button based on the url (what they clicked last page)