added function autofill slig field in add post form