adding animation to graph -- shrinks when first node is clicked