Well I have so far read many threads stating that madara used some kind of advance rinnegan technique to do so, a technique that even nagato wasn't aware.....but I beg to differ......what I believe that it wasn't a advance technique of rinnegan in fact it was 2 different technique of rinnegan...