create grid layout for magae page