fixing left and right styles for nested imgs