
{% assign category_name_split = category | split: " " %}
{% assign category_name_joined = category_name_split | join: "-" | downcase %}
  
  <div class="category-carousel" data-slider-size="{{num_of_slides}}">
    {% for course in courses.in_catalog %}           
      {% for course_categories in course.categories %}
          {% if category == course_categories.name %}
             <div class="carousel-card-wrapper">{% include "cards_course" with course %}</div>               
          {% endif %}
      {% endfor %}
    {% endfor %}
  </div>        
  
   
