Martin hits slam, Pettitte dominant for Yanks