Contrastive and Selective Hidden Embeddings for Medical Image Segmentation