Git rid of delay() calls and use millis(). The following tutorials should help:
Example-code for timing based on millis()