$("#slider").on('beforeChange', function(event, slick, currentSlide){
$(slick.$slides[currentSlide]).children('.text').fadeOut();
}
$("#slider").on('afterChange', function(event, slick, currentSlide){
$(slick.$slides[currentSlide]).children('.text').fadeIn();
}