Cosmology with clustering anisotropies: disentangling dynamic and geometric distortions in galaxy redshift surveys