 true;


        for (let index = images.length - 1; index >= 0; index--) {
            if (flag2 && images[index].classList.length === 2) {
               
                const element = images[index];
                element.classList.remove("active");
                indicator[index].classList.add("active");
                if(index<4){
                    indicator[index+1].classList.remove("active");
                }
                flag2 = false;
            }
        }


    });

</script>

</html>