successfully toggling slider open and closed. looks weird though..