resize diagram