Checkbox in ion-slides with loop

I have a page which contains ion-slides with loop enabled. Each slide is generated with *ngFor and each one contains a checkbox. The problem I am facing is that the checkbox is not getting checked on first and last slides. I have found that its because there are duplicate slides for the first slide and last slide so clicking on the checkbox is not triggering it since there are duplicates for the same. I have tried giving Id to checkbox to make it unique but since the slides are generated dynamically whatever change I give is also getting replicated. Is there any workaround for this? Any help is much appreciated.
Thank you

please post your code

<ion-slides pager='true' loop="true" (ionSlideDidChange)="onSlideChangeStart($event)" #slides>
<ion-slide *ngFor="let slide of slidesData;let i = index" #profileSlider>
<ion-row align-items-center justify-content-around>
<ion-checkbox item-left []="i+'_'+activeCard" [checked]='cardIndex == i' (click)="onCheckBoxClick(i)"></ion-checkbox>
<img class="header-icon" src="{{slide.icon}}" item-end>