Thumbnails are stored in attachments and xengallery

The thumbnails are stored in /data/attachments/ and data/xengallery/. There are exactly the same file.
Can anyone verify this?
Thanks. But why ist it so? On a forum with lots of images it can be a problem with disk space, if the thumbnails stored twice.