modified minimap scrolling to handle any size map