How am i fix the image slider from acf pro options page in the template?

Hello to all Bricks members, I have a question - for my client’s website in the contact area, I created a repeater field using ACF Pro on the Options page to input information, which are actually images. In Bricks builder, I created a template for the contact area.

I’m not using the built-in Bricks slider (I also discovered bugs in it from Swiper’s side) but I created the image transitions in a JS file that I created and linked to the template exactly as needed - the JS works as it should.

However, the problem is that the image transition slider only works on the homepage and not at all on other pages. How can I fix this?

Since it’s an ACF PRO Options page in Bricks builder, and it’s a template, it should work on all pages… Where did I go wrong during the process?