add restrictions on page inedx & size

SUP-1669 #time 15m