This is a know issue if you delete photo's via a computer. Your phone internal OS still "needs" to update his internal file system. So alter a while you will notice that these black rectangles (deleted pictures) will be gone in your phone app.