Added event parameter to allow one to change the event that causes the slide to change.
Fixed bug by quoting event name.