make preview limit easily configurable