How can I make a screen swipe to next after a specific time in Ionic?

my code goes like this. i put settimeout to call slidenext after 1000ms inside ngoninit so that it will function upon it loads

export class HomePage {
  config: SwiperOptions = {
    spaceBetween: 50,
    pagination: { clickable: true},
  };
  @ViewChild('swiper', { static: false }) swiper?: SwiperComponent;
    slideNext(){
      this.swiper.swiperRef.slideNext(1000);
    }
  constructor() {}
  ngOnInit() {
    setTimeout(() => {this.slideNext(), 1000})
  }
}