always drop useless directories from slug