.slide:first-child { margin-left: 0; } .slide:last-child { margin-right: 0; }