Hello
Thank you for your query. Can you try deleting the uploaded image? Then rotate it right using some picture editor and save it. Then upload the right image there.
Also please try clearing the cache as well.
This problem can also be caused for the fact that some photos might be taken in a different direction, and gallery uses their orginal EXIF / IPTC data.
In that cause you should on your laptop, open those "broken" images and save them again as JPG without those hidden settings using Photo editor. Then upload into gallery again, then it should be okay.
You can try also try using Irfanview client to edit/save all images in batch too.