Refactored barOffsetAnimation in BackgroundPanel

It now uses just one thread, instead of acreating a new thread every
50ms.