DOM sub-divide with margin