fixed slug function proper