Text this: A finite-dimensional reduction method for slightly supercritical elliptic problems