A. Close any other apps running in the background to free up system resources. You can do this by accessing the recent apps menu and swiping away any unnecessary applications.
B. Consider reducing the size of the images you are working with. Large images can slow down the editing process. Use a smaller resolution image for editing and then upscale it if necessary after editing.