adjusts diagram size