Hii there
Gud to hear that you are able to function properly. Don't worry about these hallucinations as it could be normal phenomenon. Some hallucinations are considered to be normal variation of human life, these are called hypnogogic and hypnopompic hallucinations which are encountered while going to sleep and when getting up from sleep.
Next Steps
If it persists for a longer time or occurs during day time consult a psychiatrist.