https://docs.magento.com/m2/ce/user_guide/cms/lightboxes-and-sliders.html

Adding a Lightbox or Slider

There is a wide assortment of jQuery-based image lightboxes, sliders, and carousels available on Magento Marketplace, and some are free.


Slider Extensions

To add a lightbox or slider to your store, download the extension from Magento Markeplace, and follow the instructions to install the extension. For additional help, see the documentation provided by the developer.