Chaos and Three-Dimensional Horseshoes in Slowly Varying Oscillators