adds height limit to messages