If it is possible that you can change your section?
It is not good that because of the teacher you hate the subject.
The only way is to work hard & get good marks do that he will be kind to you. Islamiat is the subject related to your din, mean life . If you know it very well then you can act upon it very well.
So the answer is hard work .