Changing tabs threw clicking on content

I just recently switched from editor x to webflow. I am trying to create a slider with the Tabs. I would like the tabs also to change when clicking on the content. In my case the images.

I saw quite a lot of posts, where people where creating buttons with code. but it didnt work with the images in my case

Any help would be greatly appreciated.