resize map based on orientation