creates and checks slug