Seeing shapes and objects when I close my eyes at night

I’ve been on sertraline for 2 days now and both tonight and last night i have been seeing things when i close my eyes to sleep. i close my eyes and i see moving shapes that change into objects and sometimes random things. as soon as i open my eyes they stop. it doesnt feel scary, it feels quite comforting and feels like it helps me drift off into a sleep.

its scary this happening though as i dont know if i should stop taking them. going to ring doctor in the morning but just wondering if anyones experienced similar or what is causing this?