Delete photos from icloud but keep in macbook and phone
For the laptop, move your photos to a separate folder, desktop for easily finding it, then delete them from iCloud. On your phone, just upload the photos to your laptop and delete them from the phone, then turn off photos in iCloud.