title: Slick.js: Prevent sliding to a slide under a specific condition
body: <p>I'm using <a href="http://kenwheeler.github.io/slick/" rel="nofollow noreferrer">Slick.js</a> for my carousel and I would like to prevent sliding to a slide when a specific condition is met. I'm trying to acheive this by unsing the <code>beforeChange</code> event:</p>
  
  <pre><code>$('.my-slider').on('beforeChange', function(event, slick, currentSlide, nextSlide) {
  
    if (nextSlide &gt; 3) {
       return false;
    }
  
  });
  </code></pre>
  
  <p>However, this doesn't prevent the sliding.</p>
  
  <p><strong>Is there any way in Slick to prevent sliding?</strong></p>
  
  <p>Generic situation: The "Next" button (or a "dot") is clicked, but the slide should not be shown yet. No way to handle this?</p>