Dynamics of galactic nuclei: mass segregation and collisions