The image doesn't load after some clicks

I change the image on image click but after some clicks it doesn’t show images in ion slide box plz have a look


You can see the empty space at the left of ion slide but properly showing 4 images on right side
It does work on some of the first clicks. Dont know if its ionic issue or memory issue
Thaanks