If a team member is slacking off, toss them. Never EVER put up with it and cover it up yourself because they will only be benefited from that, and even worse, you will be dragged down with them. Tell your professor about the situation and kick them out of the group. Professors ain't the devil...