For smooth animation, make sure you reuse your frames in reverse order. Otherwise, you get a "jump cut" where the animation doesn't flow... So, in your case, have the tentacles stretch out, then back them up so they retract, and then loop.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.