how to change image of jquery slider plugin

There are multiple ways to make the slider dynamic.

If you use the Gutenberg editor, you can add new style to the Gallery like this:

register_block_style( 'core/gallery', [
  'name'  => 'swiper',
  'label' => __( 'Swiper Slider' ),
] );

Then create gallery and choose the Swiper style. It will add an extra class is-style-swiper to the gallery. Target that with CSS and JS.

If you use ACF (Advanced Custom Fields), then it’s even easier to change the HTML markup to fit whatever Swiper needs.