Update element id to slug