page and post limit set dynamically