Handlers to update number of entries per row

Callback to automatically calculate width per card (and the spacings in between) when number of entries per row is updated.