adding slug functionality