How to delete a widget when a button is clicked?

Hello guys! I am new to Flutterflow, so I am not sure if it is possible, but how can I delete a widget using a button?

I have made a carousel that has three pages: two of them are images, and one is an icon button. I tried using conditional visibility, so once I click the icon button, the 3rd image is hidden, but the carousel still swipes to it, and I don't want that.

Please help me with this. I would really be thankful!

2 replies