Topological kinematic constraints: dislocations and the glide principle