anonymous"></script>
<script>
    let images = document.getElementsByClassName("image");

    const btn1 = document.getElementById("leftswap");
    const btn2 = document.getElementById("rightswap");

    const indicator=document.getElementsByClassName("dot");

    btn1.addEventListener('click', function rightswap() {
        let flag1 = true;
        let count=0;

        Array.from(images).forEach(image => {
            count+=1;
            if (image.classList.length === 1 && flag1) {
                cons