split index into layout