adapting the instance to the animation box size