buttons slide smoothly instead of glitchy effect