title: Get current slide on fullpage.js
body: <p>I'm a happy Fullpage.js user!<br>
  I just would love to add a class (.num) that shows the current number of slide / the total number of slides.</p>
  
  <p>I'm using this function that works fine, the problem is that it doesn't update at slide change. </p>
  
  <pre><code>$('.section').each(function(){
      var section = $(this),
      sectionSlides = section.find('.slide'),
      totalItems = sectionSlides.length,
      currentIndex = sectionSlides.filter('.active').index() + 2,
      numContainer = section.find('.num');
  
  numContainer.html(currentIndex + ' / ' + totalItems);
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/168xofn3/11/" rel="nofollow">http://jsfiddle.net/168xofn3/11/</a></p>