Reds stop slide with win over Cubs