scale the map such that the beginning and end are not on the edges of the map