Shrink legend on click