add error class to slug