anchor.diff:  
       }, 250);
   
  +    for (var i = 0; i < document.getElementsByClassName('img-gallery').length; i++) {
  +      document.getElementsByClassName('img-gallery')[i].addEventListener('click', function(){
  +        if (this.dataset.status == 'inactive') {
  +
  +          this.dataset.status = 'active';
  +          var asociate = this.dataset.rela;
  +          document.querySelector('span[data-rel="'+asociate+'"]').style.display = 'unset';
  +
  +          if (window.innerWidth <= 767) {
  +            document.querySelector('.img-gallery[data-rela="'+arrayImgs[asociate]+'"]').style.display = 'none';
  +          }
  +
  +        }else{
  +          this.dataset.status = 'inactive';
  +        }
  +        return false;
  +      });
  +    }
  +
  +    for (var i = 0; i < document.getElementsByClassName('close-image').length; i++) {
  +      document.getElementsByClassName('close-image')[i].addEventListener('click', function(){
  +        var asociate = this.dataset.rel;
  +        document.querySelector('.img-gallery[data-rela="'+asociate+'"]').dataset.status = 'inactive';
  +        if (window.innerWidth <= 767) {
  +          document.querySelector('.img-gallery[data-rela="'+arrayImgs[asociate]+'"]').style.display = 'unset';
  +        }
  +        this.style.display = 'none';
  +      });
  +    }
  +
       window.addEventListener('resize', myEfficientFn);
     })();
   </script>
  
positive.code:     <h2>CAR COLLECTOR SUITE</h2>
      <div class="wrap-groups">
        <div class="group">
          <%= image_tag "CollectionSuites_car_collector_suite_left.jpg", :class => 'img-gallery' %>
        </div>
        <div class="group">
          <%= image_tag "CollectionSuites_the_suites_cars.jpg", :class => 'img-gallery' %>
        </div>
      </div>
    </div>
  
negative.code:         end = false;
      var slidesNum = document.querySelectorAll('.container-slider > div').length;
  
      var arrayImgs = [0, 2,1,4,3];
  
      document.getElementById('btn-next').addEventListener('click', function(){
        clickNumber += 1;
        size_ = size_screen*clickNumber;
  