add slug to post create function