For the top and bottom surfaces of the cylinder, , since is perpendicular to the surface normals. For the curved side of the cylinder, is parallel to, so . And since the electric field must be constant over the curved surface, you can pull outside the integral: