The spatial stability of a class of similarity solutions