The Sun becomes smaller when it is more active