Static and dynamical structure of confined polymer films