Make slug function.