Print child category slug nicename

seems nobody understood ‘my question’, so I solved it myself here is the code for getting the slug I needed

<?php $cat = get_term_by('name', single_cat_title('',false), 'category'); echo $cat->slug; ?>