fixes problem of white border around image in home view
adds correct timing for animation