You either need to get a much larger aquarium, maybe not possible?, Or, find someone with a large aquarium that would take the fish off of your hands. Are you absolutely sure you can't take the fish back to where you bought it?
In a 40 litre(8.7 gallons uk) aquarium, you are severely limited in...