Frictional properties of confined polymers