Linking buttons to dynamic cms slider categories

Hey Webflow community!

I’d like to link my buttons to categories in my dynamic cms slider.

I found this very helpful tool to integrate my slider with a cms collection: https://visualscript.webflow.io/

My next step is to have it function so that when clicking the button, only the cms items in that category will appear in the slider. I’m guessing I just add another collection list and link my buttons to it to enable the category switching? Maybe there’s a better way?

Here’s my public share link

And here is the published site to view the cms items, as you can’t view them in preview mode:
handford.webflow.io

The section concerning this question is the “WORK” section, where the portfolio pieces will be presented.

Thanks for any help.
Cheers,
D

Hey! Still trying to figure out the best way to do this if anyone has any tips.

Cheers,
D