added a setting for controlling product count in the preview