Worried about my fish! He got stuck between the fish tank and the filter!?

My fish must of swam into the tiny gap and not been able to get out I thought he was dead when I spotted him but he’s out and swimming around but one of his fins is clamped to his side and he isn’t using it anymore. Is there anything I can do to help him, as other than that he’s acting okay but I feel awful.
6 answers 6