You need this.items = []; this.currentItemIndex = 0  You don't want any saved images around.