added support to make layers elset in mk_grid