If you sleep in the class then cannot understand what is teaching in the class.
Try to learn at home. Work hard. Get help from some of your friend or father.
PRAY 5 times & read QURAN daily with translation.
INSHALLAH with this your memory will get better.