Adsorption of polymer chains at two impenetrable interfaces