P channel MOSFET switching problem
Try adding pull-down resistors to the drain pins of the MOSFETs.  The waveforms you are showing are classic capacitive discharge curves caused by high-impedance loads.

Since your FET Source pins are at 5 Vdc, try 1k resistors from the drains to Ground.