A tiny device offers insights to how cancer spreads