fix pagination in media tab