Formation of colloidal threads in geometrically varying flow-focusing channels