Hi everyone!

I'm building a landing page and trying to implement a slider with filtering. I found an example on CodePen (https://codepen.io/chiz-developer/pen/ybxBKy) that demonstrates how to do this. However, when I apply a similar approach to my landing page, I encounter a problem: when I click the filter buttons, my slider disappears. Everything reappears when I click the "All" button.

I’m a beginner in JavaScript...