Forecasters say Hurricane Otis is gaining strength as it moves closer to Mexico 's northwestern coast .