refactor SensorsGridView and fix bug with displaying half-size sensor rectangle