@otis_hobbs. couple questions, which you may have already covered:
Are you placing the remove command on the specific page (before Body) that contains the slider? Make sure you are doing that.
Have you set the correct visibility condition? If you have not set it specifically to invisible, then the code will not do anything. Let me know. I will try to check back in regularly today to help.