update map size while toggling sidebar