Finally I found it. you can't add photo when contact is on your sim. you need to export all your contacts from sim to phone. do this by hitting manage contacts and the export. once all done you'll be able to add photo 😀😀
The only way to add picture to your contacts in Android 9 is:
1.Transfer all your contacts from SIM to Phone.
2.Open a contact to which you want to add picture.
3.Push “Edit”, on top of the screen, left you will get 2 choices – Phone and Sim.
4.Chose “Phone” and push the colored circle under it with camera picture.
5.From the screen that will open, chose “Gallery”, chose a picture from the “Gallery” that you want to add.
6.Resize the picture or chose “Done”.
7.Than, on the new screen that will open, chose “Save”.