remove slug function deeply