Conformational properties of a polymer confined between two adsorbing surfaces