Ionic slides dynamically add slides before and after

Hi I’m using ngFor to create an set of 3 slides while starting in the middel so I’m guaranteed to be able to slide to left or right on start.

When I slide right I can simple listen to the reachedEnd and push another slide to the array i’m looping.

but I have a problem with adding a slide to the beginning. If I do the same as above and use e.g. array.unshift() to add an item to the beginning, the view things it’s on position 0 and snaps the view to the new slide.

The code below would work but it animates the slide change back to index 1.

slideChanged(event) {
	if(this.slides.isBeginning()){
		this.slide = [this.slide[0]-1, ...this.slide];
		this.slides.update();
		this.slides.slideTo(1)
	}
}

Any help is appreciated!