check if sidebar is hidden