resize legend