Update slug() method