a work-around for the resizing issue in gallery-datatable-paginator