Confinement effects on glass forming liquids probed by dynamic mechanical analysis