Automatically set the position for the tasks