Looks to me like the gasket slipped out of place while you were installing/tightening it.
I would suggest putting a light coat of RTV on the cover rail and laying the gasket in place- when dry, install normally. this ensures the gasket will not slip out of place, but still allows you to remove the valve cover for servicing.
This especially works with gaskets that don't fit a particular valve cover very well.