Move attachments functions to sla_models