Attempting to implement dynamic size allocation for event cells