Layering transitions in confined colloidal crystals: The hcp-like phase