Making a sliding animation in my endless runner game Phaser

I am trying to make an endless runner game with Phaser 3. I have gotten him to run and jump but I don’t know how to make him slide(I think because the animation Run keeps on running in the update function) is there a way I can make him slide for some seconds then return to playing. Please any suggestions or answers would be greatly needed and accepted. Thanks.