How to change the task node size by mouse like change the Participant's size?

You don’t.

See this or this topic for context.