added reverse option to the slug