Machine Learning of Slow Collective Variables and Enhanced Sampling via Spatial Techniques