Increase the player sprite's Z value, or decrease the gate's. It can be done with SPOFS.