The article under consideration is devoted to continuous almost periodic at infinity functions defined on the whole real axis and with their values in a complex Banach space. We consider different subspaces of functions vanishing at infinity, not necessarily tending to zero at infinity. We introduce the notions of slowly varying and almost periodic at infinity functions with respect to these subspaces. For almost periodic at infinity functions (with respect to a subspace) we give four different definitions.