Welcome to Android Central! If the photos were organized into separate directories on the Note5, and then they all got copied to a single directory on the S8+, then you have to reorganize them yourself by creating the same directory structure on the S8+ with a file manager app (or with the Gallery app, if that's one of its features)