I have an HTML markup like bellow-
<div class="f_product_slider slick">
<div class="row slider_item">
<div class="col-lg-5 col-sm-6">
<div class="item">
<img src="image/bike/cycle_2.png" alt="">
<div class="content text-right">
<a href="product-details.html"><h6>Specialized Sirrus Carbon - 2018</h6></a>
<p>Slayer Bike Expert</p>
</div>
</div>
</div>
<div class="col-lg-5 col-sm-6">
<div class="item item_two">
<img src="image/bike/cycle_2.png" alt="">
<div class="content text-right">
<a href="product-details.html"><h6>Specialized Sirrus Carbon - 2018</h6></a>
<p>Slayer Bike Expert</p>
</div>
</div>
</div>
</div>
<div class="row slider_item">
<div class="col-lg-5 col-sm-6">
<div class="item">
<img src="image/bike/cycle_2.png" alt="">
<div class="content text-right">
<a href="product-details.html"><h6>Specialized Sirrus Carbon - 2018</h6></a>
<p>Slayer Bike Expert</p>
</div>
</div>
</div>
<div class="col-lg-5 col-sm-6">
<div class="item item_two">
<img src="image/bike/cycle_2.png" alt="">
<div class="content text-right">
<a href="product-details.html"><h6>Specialized Sirrus Carbon - 2018</h6></a>
<p>Slayer Bike Expert</p>
</div>
</div>
</div>
</div>
</div>
Here, every row items containing two items. That's mean, every two loop items rendered in every step of the loop.
I'm giving here a visual example of this loop-

How can I make it possible with PHP while loop? Please, don't hesitate to ask me for more details if you get confused by the question.
$query = new WP_Query(array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1 ));