I have classes in the morning.
I have classes in the afternoon.
morning + afternoon = full day
Either morning or afternoon means half a day already.
I think
But if you really want to say 'half day'
You might get away with...
I have classes half the day in the morning.
I have classes half the day in the afternoon.
I guess