Add delay for first and last frame in animation