By default, it's not possible to add the Divi module to a slider, however, it's possible to use a plugin for that purpose.
Please follow the steps below to create a carousel with your Divi modules:
Install and activate the Divi Carousel Maker plugin.
Navigate to the page where you want to add the slider.
Start adding new modules or relocating existing ones into the column where you intend to create the slider.
Open the Row settings that contain all the modules you added in the previous step.
Open the Column settings.
Switch to the Carousel / General Settings.
Turn On the Make This Column A Carousel option.
Free method of creating a carousel of Divi Modules:
It's also possible to achieve it without using a paid plugin, however, it will require some custom coding.
Please refer to the following article to see how that can be done: