fixing left panels when hidden