Flickity slider with shopify liquid with add initialIndex from shopify theme code

I used the Flickity slider with Shopify theme now I want to add initialIndex on my code

my liquid code


{% for block in section.blocks %}

{{ block.settings.cs-m-svg }}

{{block.settings.cs-m-tx}}

{% endfor %}

initialIndex": 7, i want to add based on the data-atrib-index= " {{ forloop.index }}" " this show the for loop active index so this value I need to add into Flickity data-flickity= how I can do that"