Theme Options > Speed Optimization > Masonry scripts > On. The shortcode inherits Items per page from Theme Options > Portfolio.
Regards