Start running then press A. Mario will do an instant dive, then slide on his stomach. While sliding it would be best to press B to hop quickly back on his feet.