gallery fixes

added javascript to gallery so that images would fit window width on
resize.
Re arranged order, not sure how to apply a div height to the gallery in
order to have another section underneath it.