Извиняюсь, вот
window.addEventListener("DOMContentLoaded", function() {
var btn = document.querySelectorAll("[data-id]"),
block = document.querySelectorAll(".product_slider_1");
[].forEach.call(btn, function(item, k) {
item.dataset.text = item.textContent;
var id = item.dataset.id;
item.addEventListener("click", function(event) {
event.preventDefault();
[].forEach.call(block, function(el, i) {
if (el.id == id) {
el.classList.product_slider("active");
el.classList.contains("active") && block[0].classList.remove("active")
}
else el.classList.add("active");
});
})
})
});