Neural Coarse-Graining: Extracting slowly-varying latent degrees of freedom with neural networks