Can anything be done for these, I mean to prevent those spikes and the negative dips?
Yes, use a mos with smaller Cdg. But ask yourself why you want to limit it? It's harmless. The mos is chosen for a specific load. Often you want a low Rdson as that results in low loss and cheap cooling.
If your load drives some piece of wire in excess of 5cm, you have an inductive load. Then you should take care. The back emv (the current cannot stop immediately) can lead to high voltage peaks on the drain. T his can destroy the gate of the mos. Lowering the switching frequency does not help. Lowering the switch time is a poor man's solution as it increases the switching loss. Just add a diode and perhaps a snubber network (small filter).A scope is a prefect tool to measure this.
And finally don't forget to use good power supply decoupling! The wire feeding your circuit (if you use this) also has self inductance. It cannot deliver the pulsed current to feed your load. Result can be a large ripple on your supply.