.sliders { position: relative; } .sliders .slide { position:absolute; top:0; left:0; z-index:8; } .sliders .slide.active-slide { z-index: 10; } .sliders .slide.last-active-slide { z-index: 9; }