=if(row(a1)>5,"",iferror(index($a$1:$t$1,row(a1)+column(a1)*5-5),""))
try this