Recently answered a similar question: https://toster.ru/answer?answer_id=814248
You need to use the plugin PODS
and custom field to upload images. The response code is output many images. The code is easily adapted to any slider.
In the admin interface of add/editing photos will look as follows:
I recommend you examine the PODS plugin will be very useful in working with WordPress.