Hi @Tal_Shpon, well, if custom code is needed to get something to work, then we do not support it as a feature generally, and rather look for re-design/re-structure using the built in tools to meet certain design scenarios.
At the moment, I do not have a solution to get the custom code to work on the nav button on the slider.
I think I was able to find an alternate, non-code solution using tabs nested within tabs, take a peek at a quick video I made, to show how to do it at a high level:
I hope this helps!