$(function() {
var sliderItems = $('[data-slider="sliderOne"]').children();
var buttonPrev = $('.buttons .prev');
var buttonNext = $('.buttons .next');
var i = 0;
buttonNext.click(function() {
sliderItems[i].addClass('active__image');
});
});
TypeError: sliderItems[i].addClass is not a function