Adds javascript that calculates dynamically the height of the pictures plus adds a grid-sizer class to get the first width