The resistor in series with the gate should be ~220Ω to charge the mosfet input capacitance quickly.
Pin 9 - - - 220Ω - - - gate.
Also connect pin 9 to GND through a 10K resistor.
If the series resistor is too large, the mosfet will stay in the linear area too long and get hot, while not switch properly.
.