Hey @Taraa I resolved the same issue here testing the <ion-slides>
node with *ngIF and the length of your dynamic array.
<ion-slides #theSlides [options]="slideOpts" *ngIf="peers.length > 0">
Then the HTML ion-slides element will be set up only when data is loaded
Cheers