Linking two iteration loops in WordPress (edited)

I had previously asked this question in the following link, but I did not get any answer:

enter link description here

This time I edited my question so that you can better understand what I mean.

I’m going to use a slider that consists of two parts on my wordpress site and on my single product page.

For this purpose, I need to use two repetition loops to call the desired product in the slider.

I used a normal repeat loop that I have used a lot in my website design for this slider, which works correctly, and my only problem is that the two slides do not match, which can be seen in the image of the previous question.

Is there a way to make both loops call the same product at the same time?

The very simplified code of the slider along with the repeating loop that I have used is as follows:

<div class="slider-main">
        <div class="mini-slide">

            <ul>


            <?php
        $args = array(
          'post_type' => 'product',
          'posts_per_page' => '-1',
          'offset' => 0,
          'order' => 'DESC',
          'post_status' => 'publish',
        );
        $my_query = new WP_Query( $args );
        while ( $my_query->have_posts() ):
          $my_query->the_post();
        $do_not_duplicate = $post->ID;
        ?>

                <li>
                    <a class="mini-slide_img" href="<?php echo get_the_post_thumbnail_url( $post->ID ); ?>"></a>
                </li>

                <?php endwhile; wp_reset_postdata(); ?>

            </ul>

        </div>

        <div class="max-slide">

           <ul>

           <?php
        $args = array(
          'post_type' => 'product',
          'posts_per_page' => '-1',
          'offset' => 0,
          'order' => 'DESC',
          'post_status' => 'publish',
        );
        $my_query = new WP_Query( $args );
        while ( $my_query->have_posts() ):
          $my_query->the_post();
        $do_not_duplicate = $post->ID;
        ?>

              <li>
                <a class="max-slide_img" href="<?php echo get_the_post_thumbnail_url( $post->ID ); ?>"></a>
              </li>

         <?php endwhile; wp_reset_postdata(); ?>

           </ul>

          
        </div>

    </div>