Adding sides of the DEM