firing x-gif-finished if you only play n times