cleaned up photo box slider functions