cleanup hists layout