Added a custom event trigger on slide