How can I display related products horizontally in the cart page?

Hello Community,

I’m using using below script code to show related product on Cart page the script working perfect but the issue it related products are shown in vertically.. is there any way to show related product in carousel or horizontally?

Script code is

{% assign heading = 'You may also like' %}

  

    

  
## {{ heading }}

 
    {% assign prod_handle = '' %}
     {% assign item_handle = '' %}
     {% for item in cart.items %}	
     {%assign  item_handle = item_handle | append: item.product.handle | append: ';' %}
    {% endfor %}
        {% for item in cart.items %}	
    {% for col_item in item.product.collections %}
    {% for prod in col_item.products %}
 {% if prod_handle contains  prod.handle or  item_handle contains  prod.handle %}
    {% else %}
  			

                

            	

                   
            
                        
                          {{ prod.featured_image | product_img_url: "medium" | img_tag}}
                     
                    

                    
                        {{ prod.title }}
                  

                  
                    
                       {{ prod.price | money }}
                  
                  

                 
                    QUICK VIEW
                  

                  

                  {%assign  prod_handle = prod_handle | append: prod.handle | append: ';' %}
                  

                

     		 
          
      {% endif %}
    
    {% endfor %}
        {% endfor %}

    {% endfor %}
  

       

  

 

Current view of related product in cart page is vertical