made sure slug is cropped when generated