Although the settings are adaptiveHeight, but does not work with hidden content. When clicked, it is simply not displayed, but after returning from another slide, it becomes visible. Perhaps somehow through the cycle you will have to read the height beforehand, taking into account the hidden block. I ask for help with advice
https://codepen.io/st-iv/pen/qLOKWj
$('.slider').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, adaptiveHeight: true }); // accordion $('.content-hide').hide(); $('.show-btn').click(function (e) { e.preventDefault(); $(this).siblings('.content-hide').slideToggle(); });