Clicking on an image will open a slider showing all images before filtering. Once filtered, only the selected images will be displayed in the slider.
<div class="gallery row" id="gallery" style="margin:0;">
<!-- Grid column -->
<div class="mb-3 pics animation all 2 col-md-4 col-sm-12">
<img class="img-fluid" src="assets/images/11.jpg" alt="Card image cap" style="height:300px;" onclick="openModal();currentSlide(1)">
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="mb-3 pics animation all 1 col-md-4 col-sm-12">
<img class="img-fluid" src="assets/images/111.jpg" alt="Card image cap" style="height:300px;" onclick="openModal();currentSlide(2)">
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="mb-3 pics animation all 1 col-md-4 col-sm-12">
<img class="img-fluid" src="assets/images/131.jpg" alt="Card image cap" style="height:300px;" onclick="openModal();currentSlide(3)">
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="mb-3 pics animation all 2 col-md-4 col-sm-12">
<img class="img-fluid" src="assets/images/141.png" alt="Card image cap" style="height:300px;" onclick="openModal();currentSlide(4)">
</div>
<!-- Grid column -->
...