improves gallery responsiveness