I need a button to be active only when first slide is active. I tried this code, but it doesn\'t work properly - button becomes disabled just always. What is wrong?