The gravitation effect of colliding planar shells of matter