matrix size is based on screen size

Change-Id: I9d47f19ab63362aa4f59799d280a620870956503
Reviewed-on: http://review.couchbase.org/31529
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>