Untangle attachment IDs and dimensions