Computer simulations of thin polymer layers