Gamma and octupole vibrations in deformed nuclei