$core_v2_ui.Page issues for NumberOfPagesToDisplay

Hi,

iam using $core_v2_ui.Page and specified that "NumberOfPagesToDisplay =3" still its showing 5 pages 

$core_v2_ui.Pager($medias.PageIndex, $medias.PageSize, $medias.TotalCount, "%{ ShowPrevious = 'true', ShowNext = 'true', PagedContentFile = 'list-detail.vm', LoadOnAnyHashChange = 'true', LoadingIndicator = 'true', ShowIndividualPages='true',  NumberOfPagesToDisplay = 3 }")