loop back gif so that it would be more smooth.