const slides = document.querySelectorAll('.info__item:not(.swiper-slide-duplicate)');
const next = document.querySelector('.swiper-button-prev');
const prev = document.querySelector('.swiper-button-next');
if(slides.length > 1){
next.classList.add('active');
prev.classList.add('active');
}
.swiper-button-prev,
.swiper-button-next{
display: none;
}
.swiper-button-prev.active,
.swiper-button-next.active{
display: block;
}