Snow galleries had one side and a roof that sloped upward until it met the mountainside, thus permitting avalanches to slide over the galleries, some of which extended up the mountainside as much as 200 feet .