Added possibility to set max number items in viewlet

Hi,

I think the mas size elements in viewlet should be set as well.

Best regards,
Bogdan.