How to adjust widget animation on options menu

Iam using UE5, and I have a options menu that when ever I press a button it shows another widgets that has the settings in it.

It works all fine but. I tried adding some animation to it and I couldn’t make it work.
sometimes it works on the first click the it doesn’t animate again and sometimes it keeps glitching and it hides but still shows the checkbox and the slider in it so how to make fully functioning animation.

349342-sssss.png

And thats my logic Blue Print before the animation so it can show and hide the widget on click and hide the click on other buttons click so it prevents 2 menu opening at the same time