Update image layout position for index and preview page