Mind the Gap: collective thinking avoids tripping