fixing chat messages width and height