.swiper-slide img{ height: 153px; } var myNav = document.getElementById("nav").getElementsByTagName("a"); for(var i=1;i