s6.on('slideChange', function() {
const otherSlides = swiperSlides
for (let index = 0; index < swiperSlides.length; index++) {
const element = swiperSlides[index];
element.getElementsByTagName('a')[0].style.display = 'none'
}
const linkElemCurrentSlide = swiperSlides[s6.realIndex].getElementsByTagName('a')
linkElemCurrentSlide[0].style.display = 'block'
});
<div class="team">
<div class="new">
<div class="team_single">1</div>
<div class="team_single">2</div>
</div>
<div class="new">
<div class="team_single">3</div>
<div class="team_single">4</div>
</div>
<div class="new">
<div class="team_single">5</div>
<div class="team_single">6</div>
</div>
<div class="new">
<div class="team_single">7</div>
<div class="team_single">8</div>
</div>
<div class="new">
<div class="team_single">9</div>
<div class="team_single">10</div>
</div>
</div>
<div class="team">
<div class="team_single">1</div>
<div class="team_single">2</div>
<div class="team_single">3</div>
<div class="team_single">4</div>
<div class="team_single">5</div>
<div class="team_single">6</div>
<div class="team_single">7</div>
<div class="team_single">8</div>
<div class="team_single">9</div>
<div class="team_single">10</div>
</div>
Uncaught TypeError: Cannot read property 'push' of undefined