added box around event div of length relative to period of time