# Help speeding up my Gallery

**URL:** <https://community.thunkable.com/t/help-speeding-up-my-gallery/1299536>\
**Category:** Questions about Thunkable X\
**Created:** [May 22, 2021, 8:26am UTC](https://community.thunkable.com/t/help-speeding-up-my-gallery/1299536 "2021-05-22T08:26:09Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 22, 2021, 4:33pm UTC](https://community.thunkable.com/t/help-speeding-up-my-gallery/1299536/6 "2021-05-22T16:33:48Z")

</div>

You’re connecting to your Google Sheet every time you display an image. So if you have 30 images, that’s 30 separate connections. You need to avoid that.

Also, I’m doing something similar in my Photo Journal app. One way I speed things up is by hiding and showing components instead of cloning and removing them. If it makes sense to do it that way, you can create all of the components manually in the screen and then just hide the ones that would be blank (that are beyond the index of the gallery length). That may speed things up, too. It’s a major change to your project so I would only undertake it after you’ve eliminated other things that might be slowing it down.

I use the “seconds since 1970” block in the Device drawer to time how long certain parts of my project take to run. See this post:

> [@Firebase retrieval speed test](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/7):
>
> You’re right! I’m getting 0.15 seconds with this: So it really is the cloud variables that are causing all the slowdowns. And yes, thank you for pointing out the synchronous nature of them that’s really the issue.

You can “bookend” sections of your blocks and then make minor changes (e.g. remove a block) to see how it affects the timing.

---

_[View the full topic](https://community.thunkable.com/t/help-speeding-up-my-gallery/1299536)._
