Make resizing function in Index application more selective.

Fixes #60