Refactored map controls for slidetoggle