set width and height so that content overflow is hidden