added zoom out functionality to generalized resource (filter) function