Good question, many ask this.
Grab your rightmost palette (layers in your case), and drag to the right (Slightly off the screen) until you see a blue vertical line, then drop the layers palette adn it will snap and your layers palette will span the vertical of screen. You will now be docked to the right side. Now maximize won't go under your palettes.
OM gosh, thank you. All fixed now, and can't believe how easy that was.