в slidesToShow указываю значение 2, однако он добавляет класс slick-active на один блок больше
<div class="slick-slider-portfolio">
<div class="slick-slide">
<img class="system-item_img" src="{{ STATIC_URL }}img/img-sample-1.jpg" alt="Экономьте деньги">
</div>
<div class="slick-slide">
<img class="system-item_img" src="{{ STATIC_URL }}img/img-sample-2.jpg" alt="Экономьте деньги">
</div>
<div class="slick-slide">
<img class="system-item_img" src="{{ STATIC_URL }}img/img-sample-3.jpg" alt="Экономьте деньги">
</div>
<div class="slick-slide">
<img class="system-item_img" src="{{ STATIC_URL }}img/img-sample-1.jpg" alt="Экономьте деньги">
</div>
<div class="slick-slide">
<img class="system-item_img" src="{{ STATIC_URL }}img/img-sample-2.jpg" alt="Экономьте деньги">
</div>
<div class="slick-slide">
<img class="system-item_img" src="{{ STATIC_URL }}img/img-sample-3.jpg" alt="Экономьте деньги">
</div>
</div>
.fp-portfolio {
overflow: hidden;
padding: 50px 0;
}
.slick-slider-portfolio {
}
.slick-slider-portfolio .slick-slide {
width: 100%;
height: auto;
cursor: pointer;
padding: 10px;
text-align: center;
border: none;
outline: none;
}
.slick-slider-portfolio .slick-slide img {
width: 100%;
height: 250px;
}
.slick-slider-portfolio .slick-slide:not(.slick-active) {
opacity: 0.5;
}
$('.slick-slider-portfolio').slick({
centerMode: true,
slidesToShow: 2,
centerPadding: '110px',
/*autoplay: true,*/
});
в итоге получается так (сорян)
<div class="slick-slider-portfolio slick-initialized slick-slider"><button type="button" data-role="none" class="slick-prev slick-arrow" aria-label="Previous" role="button" style="display: block;">Previous</button>
<div aria-live="polite" class="slick-list draggable" style="padding: 0px 110px;"><div class="slick-track" style="opacity: 1; width: 5916px; transform: translate3d(-2958px, 0px, 0px);" role="listbox"><div class="slick-slide slick-cloned" data-slick-index="-3" aria-hidden="true" style="width: 493px;" tabindex="-1">
<img class="system-item_img" src="/static/img/img-sample-1.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-cloned" data-slick-index="-2" aria-hidden="true" style="width: 493px;" tabindex="-1">
<img class="system-item_img" src="/static/img/img-sample-2.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-cloned" data-slick-index="-1" aria-hidden="true" style="width: 493px;" tabindex="-1">
<img class="system-item_img" src="/static/img/img-sample-3.jpg" alt="Экономьте деньги">
</div><div class="slick-slide" data-slick-index="0" aria-hidden="true" style="width: 493px;" tabindex="-1" role="option" aria-describedby="slick-slide00">
<img class="system-item_img" src="/static/img/img-sample-1.jpg" alt="Экономьте деньги">
</div><div class="slick-slide" data-slick-index="1" aria-hidden="true" style="width: 493px;" tabindex="-1" role="option" aria-describedby="slick-slide01">
<img class="system-item_img" src="/static/img/img-sample-2.jpg" alt="Экономьте деньги">
</div><div class="slick-slide" data-slick-index="2" aria-hidden="true" style="width: 493px;" tabindex="-1" role="option" aria-describedby="slick-slide02">
<img class="system-item_img" src="/static/img/img-sample-3.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-active" data-slick-index="3" aria-hidden="false" style="width: 493px;" tabindex="-1" role="option" aria-describedby="slick-slide03">
<img class="system-item_img" src="/static/img/img-sample-1.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-current slick-active slick-center" data-slick-index="4" aria-hidden="false" style="width: 493px;" tabindex="-1" role="option" aria-describedby="slick-slide04">
<img class="system-item_img" src="/static/img/img-sample-2.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-active" data-slick-index="5" aria-hidden="false" style="width: 493px;" tabindex="-1" role="option" aria-describedby="slick-slide05">
<img class="system-item_img" src="/static/img/img-sample-3.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-cloned" data-slick-index="6" aria-hidden="true" style="width: 493px;" tabindex="-1">
<img class="system-item_img" src="/static/img/img-sample-1.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-cloned" data-slick-index="7" aria-hidden="true" style="width: 493px;" tabindex="-1">
<img class="system-item_img" src="/static/img/img-sample-2.jpg" alt="Экономьте деньги">
</div><div class="slick-slide slick-cloned" data-slick-index="8" aria-hidden="true" style="width: 493px;" tabindex="-1">
<img class="system-item_img" src="/static/img/img-sample-3.jpg" alt="Экономьте деньги">
</div></div></div>
<button type="button" data-role="none" class="slick-next slick-arrow" aria-label="Next" role="button" style="display: block;">Next</button></div>