find maximal dimension (width/height) in an array of the elements
function(elements, dimension) {

	return _.reduce(elements, function(max, el) { return Math.max(el.get('size')[dimension], max); }, 0);
    }