when complete no loop animation, the index should stop at last index