Set size and animationDelay in adding function