You can go through gates, but only those that indicate less than you are tall. Grab boxes along the way to lengthen yourself again.