This has been driving me crazy for years. But Preview has an idea about groups of photos, so if you open up a subset and then later a bigger set of photos, it opens multiple windows. The fix is pretty easy as Daily Motion points out, just start Preview and go into the settings and choose Images ‘When Opening Files:’ then pick ‘Open all files in one window’