Removing slide from ionic slide box causes issues, how to?

i have this demo:
towards the end there is this code

$scope.slideChanged = function(index) {
    //$, 1);

as is, the slide works great. but if i uncomment the code, the slider breaks.

my goal is to remove the slide once is has been swiped away.

any ideas?

try to call
the update function after slicing:$ionicSlideBoxDelegate/

tried that, no success

only found in that time a very bad solution:

adding ng-if to the whole slidebox and hide it after slide change…
and the index represents the current index so you need to splice index - 1

something rather then nothing.