const miniImage = document.getElementsByClassName('mini_image');
for (let i = 0; i < miniImage.length; i++) {
miniImage[i].onclick = function () {
if(miniImage[i].classList.contains('active')) {
miniImage[i].classList.remove('active');
}
miniImage[i].classList.add('active');
}
}