Php based grid creator using div element