adds idle timer for gallery