resize attachments