 <p>instead of </p> <pre><code>if (currentSlide == 5) </code></pre> <p>you can add an incremented class on each of your slides, and check what is inside in this if. the html will looks like this: </p> <pre><code> &lt;div class="slide1"&gt;&lt;img src="http://placehold.it/900x500"&gt;&lt;/div&gt; &lt;div class="slide2"&gt;&lt;img src="http://placehold.it/900x500"&gt;&lt;/div&gt; &lt;div class="slide3"&gt;&lt;img src="http://placehold.it/900x500"&gt;&lt;/div&gt; &lt;div class="slide4"&gt;&lt;img src="http://placehold.it/900x500"&gt;&lt;/div&gt; &lt;div class="slide5"&gt;&lt;img src="http://placehold.it/900x500"&gt;&lt;/div&gt; &lt;div class="slide6" id="slide-video"&gt; &lt;video width="900px" height="500px" class="theVideo"&gt; &lt;source src="http://vjs.zencdn.net/v/oceans.mp4" /&gt; &lt;/video&gt; </code></pre> <p>for example you ll do :</p> <pre><code> $('.sliderMain').on('afterChange', function(event, slick, currentSlide){ if ($('.slide'+currentSlide+ ' video').length != 0){ $('.sliderMain').slick('slickPause'); theVideo.play(); } }); </code></pre> <p>You ll probably then know if you have a node video in your current slide.</p> <p>hope this will help</p>