Messenger pics iv sent to friends move sometimes to gallery
On Facebook Messenger,

Go to Settings › Photos and Media.

There uncheck the two options, if you wish to. This will stop messenger photos from appearing in the gallery in the future.

My Messenger is version 55. I think this option exists in all recent versions, too.