how to addclass active to tab on finding values matched to attribute code example
Example: jquery get element by class and data attribute
$('.slide-link[data-slide="0"]').addClass('active');
$('.slide-link[data-slide="0"]').addClass('active');