Added a Toggle Method

Simple Toggle Method.
If layer is open the Layer will close. 
If the layer is closed it will open.
It's just that simple.

Just for nicer looking code.