Phase transformations in slit-pores: the role of metastable phases