Hello
Thank you for your query. Can you try using the same resolution for all images and check again? 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.