Swans battle back to edge five-goal thriller