visual effects for displaying photos, added some jQuery code to handle buttons