$(function(){
$('.slider').slick({
autoplay: true,
autoplaySpeed: 2000,
});
$('.total').text( $(".slider").slick("getSlick").slideCount);
$(".slider").on('afterChange', function(event, slick, currentSlide){
$(".current").text(currentSlide + 1);
});
});