set limit to pagination media index