gallery: run particles only when visible

Change-Id: I7c0f5565161719905e973d3fd1a75b3c9d8a4007
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>