display preview attachments properly