Stability of convection rolls in a layer with stress-free boundaries